package com.example.demo.day.config.learn.test1;


import com.example.demo.day.config.learn.test1.repository.UserDTO;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class TestTemple {

    public static void main(String[] args) {
//        ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
//
//        User user = (User) context.getBean("user");
//
//        User user1 = new User();
//        user1.setUsername("ddd");

        //UserDTO userDTO = (UserDTO) context.getBean("user1");

        UserDTO user = new UserDTO();

        System.out.println("user: " + user);
        //System.out.println("user1: " + user1);
        //System.out.println("userDTO: " + userDTO);
    }
}
